package com.lanou.bean;

import java.util.Date;
import java.util.List;

public class Service {
    private Integer serviceId;
    private Integer accountId;
    private String unixHost;
    private String osUsername;
    private String loginPasswd;
    private String status;
    private Date createDate;
    private Date pauseDate;
    private Date closeDate;
    private Integer costId;
    private List<Cost> cList;
    private List<Account> aList;
    public Service(){
    
    }

    public Service(Integer accountId, String unixHost, String osUsername, String loginPasswd, Integer costId, String status, Date createDate) {
        this.accountId = accountId;
        this.unixHost = unixHost;
        this.osUsername = osUsername;
        this.loginPasswd = loginPasswd;
        this.costId = costId;
        this.status= status;
        this.createDate= createDate;
    }

    public Service(Integer serviceId, Integer accountId, String unixHost, String osUsername, String loginPasswd, String status, Date createDate, Date pauseDate, Date closeDate, Integer costId, List<Cost> cList, List<Account> aList) {
        this.serviceId = serviceId;
        this.accountId = accountId;
        this.unixHost = unixHost;
        this.osUsername = osUsername;
        this.loginPasswd = loginPasswd;
        this.status = status;
        this.createDate = createDate;
        this.pauseDate = pauseDate;
        this.closeDate = closeDate;
        this.costId = costId;
        this.cList = cList;
        this.aList = aList;
    }

    public List<Cost> getcList() {
        return cList;
    }

    public void setcList(List<Cost> cList) {
        this.cList = cList;
    }

    public List<Account> getaList() {
        return aList;
    }

    public void setaList(List<Account> aList) {
        this.aList = aList;
    }

    public Integer getServiceId() {
        return serviceId;
    }
    
    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getUnixHost() {
        return unixHost;
    }
    
    public void setUnixHost(String unixHost) {
        this.unixHost = unixHost == null ? null : unixHost.trim();
    }
    
    public String getOsUsername() {
        return osUsername;
    }

    public void setOsUsername(String osUsername) {
        this.osUsername = osUsername == null ? null : osUsername.trim();
    }

    public String getLoginPasswd() {
        return loginPasswd;
    }

    public void setLoginPasswd(String loginPasswd) {
        this.loginPasswd = loginPasswd == null ? null : loginPasswd.trim();
    }
    
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getPauseDate() {
        return pauseDate;
    }

    public void setPauseDate(Date pauseDate) {
        this.pauseDate = pauseDate;
    }

    public Date getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Date closeDate) {
        this.closeDate = closeDate;
    }

    public Integer getCostId() {
        return costId;
    }

    public void setCostId(Integer costId) {
        this.costId = costId;
    }

    @Override
    public String toString() {
        return "Service{" +
                "serviceId=" + serviceId +
                ", accountId=" + accountId +
                ", unixHost='" + unixHost + '\'' +
                ", osUsername='" + osUsername + '\'' +
                ", loginPasswd='" + loginPasswd + '\'' +
                ", status='" + status + '\'' +
                ", createDate=" + createDate +
                ", pauseDate=" + pauseDate +
                ", closeDate=" + closeDate +
                ", costId=" + costId +
                ", cList=" + cList +
                ", aList=" + aList +
                '}';
    }
}